package cn.rongdao.jrkabao.model.identify;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.Map;

import cn.rongdao.jrkabao.bean.identify.SocialSecurityVerifyDataBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jiangyongxing on 2017/5/11.
 * 描述：
 */

public class SocialSecurityVerificateGetResultDataModel extends BaseSuDaiModel {

    public static SocialSecurityVerificateGetResultDataModel getInstance() {
        return getPresent(SocialSecurityVerificateGetResultDataModel.class);
    }

    public void execute(Map<String, String> map, Observer<SocialSecurityVerifyDataBean> observer) {
        addParamStrings(map);
        Observable<SocialSecurityVerifyDataBean> observable = mServletApi.getSocialSecurityVerifyData(mParams).map(new HttpFunction<SocialSecurityVerifyDataBean>());
        toSubscribe(observable, observer);
    }
}